<template>
  <el-breadcrumb separator-class="el-icon-arrow-right">
    <el-breadcrumb-item to="/admin/dashoard">首页</el-breadcrumb-item>
    <template v-for="(item, index) in items">
      <el-breadcrumb-item :key="index">{{ item }}</el-breadcrumb-item>
    </template>
  </el-breadcrumb>
</template>

<script>
export default {
  // props: {
  //   items: {
  //     type: Array,
  //     default: () => []
  //   }
  // },
  data() {
    return {
      items: []
    }
  },
  created() {
    // console.log(this.$route.meta.crumbItems)
    this.items = this.$route.meta.crumbItems || []
  }
}
</script>

<style lang="scss" scoped></style>
